package cate.common.table.item.hero.row;

import cate.common.table.ERow;
import cate.common.table.XSSFRowWrap;

public class HeroGradeRow extends ERow {

    /** 原型ID */
    public int protoId;
    /** 阶数 */
    public int grade;
    /** 升阶所需星级 */
    public int starRequire;
    /** 等级上限 */
    public int levelLimit;
    /** 开启技能数 */
    public int skillEnableNum;
    public String consumeStr;

    @Override
    public void parse(XSSFRowWrap xrw) {
        super.parse(xrw);
        this.id = xrw.getInteger("id",0);
        this.protoId = xrw.getInteger("原型id",0);
        this.grade = xrw.getInteger("阶数",0);
        this.starRequire = xrw.getInteger("升阶所需星级",0);
        this.levelLimit = xrw.getInteger("等级上限",0);
        this.consumeStr = xrw.getString("消耗");
        this.skillEnableNum = xrw.getInteger("开启技能数", 1);
    }
}
